package com.example.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.admin.entity.SysRole;
import com.example.admin.entity.SysUser;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wangkai
 * @since 2019-06-04
 */
public interface ISysUserService extends IService<SysUser> {

    /**
     * 保存系統用户
     *
     * @param sysUser
     * @return
     */
    boolean saveSysUser(SysUser sysUser);

    /**
     * 修改系统用户
     *
     * @param sysUser
     * @return
     */
    boolean updateSysUser(SysUser sysUser);

    /**
     * 刪除系统用户
     *
     * @param sysUser
     * @return
     */
    boolean deleteSysUser(SysUser sysUser);

    boolean deleteSysUser(Integer[] ids);

    List<SysUser> listRoleUser(SysRole sysRole);
}
